home *** CD-ROM | disk | FTP | other *** search
- Path: news.widomaker.com!sgross
- From: sgross@widomaker.com (Stephen Gross)
- Newsgroups: comp.lang.c
- Subject: question
- Date: 4 Feb 1996 16:52:03 GMT
- Organization: Widomaker Public Access Internet (804)221-8070
- Message-ID: <4f2o7j$l62@news2.widomaker.com>
- NNTP-Posting-Host: wilma.widomaker.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Can anybody explain in depth the process of the following code:
- assuming (char *q, char *z)
-
- -> q = &z; <-
-
- I know of course that this assign the address of z to q, BUT:
- I have written code wherein the variable q is completely
- unnecessary (i put it in as a watch variable), but the program functions
- correctly with it, and bombs out without it. This is theoretically
- impossible because q does nothing more than hold z's address. NOTHING more.
- any ideas on what's going on? i'm using borland c 3.1.
-
- thanx, sgross
-
-